<?php
/**
 * @deprecated （废弃了！放到V2_3中了）
 * Author: lyun
 * Date: 2018/6/12
 * Created by Panxsoft.
 */


namespace App\Http\Requests\Wechat;

use App\Http\Requests\ApiRequest;

/**
 * @deprecated
 *
 * @property string customer_id
 * @property string store_id
 */
class DeprecatedSkinRecordIndexRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'openid'      => 'required|string',
            'appid'       => 'required|string',
            'customer_id' => 'nullable|int|min:1',
            'store_id'    => 'nullable|int|min:1',
        ];
    }

    /**
     * @return array
     */
//    public function messages()
//    {
//        return [
//            'openid.*'      => '微信用户的openid必须是字符串',
//            'appid.*'       => '公众号的appid必须是字符串',
//            'customer_id.*' => '客户编号必须是数字',
//            'store_id.*'    => '店铺编号必须是数字',
//        ];
//    }
}
